package com.yw.common.core.db.test;

import com.yw.common.core.db.dao.IBrowseDao;
import com.yw.common.core.db.dao.IRetrieve;
import com.yw.common.core.db.dao.IUpdateDao;
import com.yw.common.core.db.dao.impl.DefaultBrowseDaoImpl;
import com.yw.common.core.db.dao.proxy.DefaultBrowseDaoProxy;
import com.yw.common.core.db.test.entity.PoDept;
import com.yw.common.core.db.test.entity.PoMenu;
import com.yw.common.core.db.test.entity.PoStudent;

/**
 * dao测试
 * @author aoshiguchen
 * @time 2015-12-06
 */

public class DaoTest3 {
	public static void main(String[] args) {
		IRetrieve dao;
		
		dao = new DefaultBrowseDaoProxy(new DefaultBrowseDaoImpl(PoStudent.class));
		System.out.println(dao.findAll());
		
		dao = new DefaultBrowseDaoProxy(new DefaultBrowseDaoImpl(PoMenu.class));
		System.out.println(dao.findAll());
		
		dao = new DefaultBrowseDaoProxy(new DefaultBrowseDaoImpl(PoDept.class));
		System.out.println(dao.findAll());
		
	}
}
